<?php

namespace app\controller;

echo 'app home';

use core\Controller;

class User extends Controller
{
    /**
     * 默认方法，例如处理 /users
     */
    public function index(): void
    {
        echo "User index<br>";
        echo "The full URL is: " . $this->url();
    }

    public function demo()
    {
        echo 'user demo';
        dump($this->segment(1));
    }
}
